<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Form elements - jQuery Mobile Demos</title>
    <link rel="stylesheet" href="../../css/themes/default/jquery.mobile-1.3.1.min.css">
    <link rel="stylesheet" href="../../_assets/css/jqm-demos.css">
    <link rel="shortcut icon" href="../../favicon.ico">
    <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,700">
    <script src="../../js/jquery.js"></script>
    <script src="../../_assets/js/index.js"></script>
    <script src="../../js/jquery.mobile-1.3.1.min.js"></script>
</head>
<body>
<div data-role="page" class="jqm-demos" data-quicklinks="true">

<div data-role="header" class="jqm-header">
<h1 class="jqm-logo"><a href="../../"><img src="../../_assets/img/jquery-logo.png" alt="jQuery Mobile Framework"></a>
</h1>
<a href="#" class="jqm-navmenu-link" data-icon="bars" data-iconpos="notext">Navigation</a>
<a href="#" class="jqm-search-link" data-icon="search" data-iconpos="notext">Search</a>

<div class="jqm-search">
<ul class="jqm-list">
<li data-section="Widgets" data-filtertext="accordions collapsible sets content formatting grouped inset mini"><a
        href="widgets/accordions/">Accordion</a></li>

<li data-section="Widgets" data-filtertext="ajax navigation navigate event method"><a href="widgets/navigation/"
                                                                                      data-ajax="false">AJAX
    Navigation</a></li>

<li data-section="Widgets"
    data-filtertext="autocomplete filter reveal listviews remote listviewbeforefilter placeholder"><a
        href="widgets/autocomplete/" data-ajax="false">Autocomplete</a></li>

<li data-section="Widgets" data-filtertext="buttons inputs forms inline theme grouped icons mini disabled"><a
        href="widgets/buttons/" data-ajax="false">Buttons</a></li>

<li data-section="Widgets" data-filtertext="checkboxes checkboxradio inputs forms mini disabled"><a
        href="widgets/checkbox/">Checkboxes</a></li>

<li data-section="Widgets" data-filtertext="collapsibles content formatting"><a href="widgets/collapsibles/"
                                                                                data-ajax="false">Collapsibles</a></li>

<li data-section="Widgets" data-filtertext="controlgroups selects checkboxradio buttons horizontal vertical"><a
        href="widgets/controlgroups/">Controlgroup</a></li>

<li data-section="Widgets" data-filtertext="dialogs modal popups"><a href="widgets/dialog/">Dialogs</a></li>

<li data-section="Widgets" data-filtertext="fixed toolbars headers footers sections fullscreen"><a
        href="widgets/fixed-toolbars/">Fixed toolbars</a></li>

<li data-section="Widgets" data-filtertext="flip toggle switch binary slider selects forms disabled"><a
        href="widgets/sliders/switch.html" data-ajax="false">Flip switch toggle</a></li>

<li data-section="Widgets" data-filtertext="footer toolbars footers sections"><a href="widgets/footers/">Footer
    toolbar</a></li>

<li data-section="Widgets"
    data-filtertext="forms inputs slider button range toggle switch label disabled accessible fieldcontains elements"><a
        href="widgets/forms/">Form elements</a></li>

<li data-section="Widgets" data-filtertext="grids columns blocks content formatting rwd responsive"><a
        href="widgets/grids/">Grids</a></li>

<li data-section="Widgets" data-filtertext="header toolbars fixed fullscreen sections"><a href="widgets/headers/">Header
    toolbar</a></li>

<li data-section="Widgets" data-filtertext="icons buttons disc position"><a href="widgets/icons/">Icons</a></li>

<li data-section="Widgets" data-filtertext="links navigation ajax prefetch cache"><a href="widgets/links/">Links</a>
</li>

<li data-section="Widgets" data-filtertext="listviews thumbnails icons nested split button collapsible ul ol"><a
        href="widgets/listviews/" data-ajax="false">Listviews</a></li>

<li data-section="Widgets" data-filtertext="ajax loader overlay spinner pages"><a href="widgets/loader/"
                                                                                  data-ajax="false">Loader overlay</a>
</li>

<li data-section="Widgets" data-filtertext="navbars navmenu toolbars links icons footer header"><a
        href="widgets/navbar/" data-ajax="false">Navbar</a></li>

<li data-section="Widgets" data-filtertext="navbars persistent header footer links navmenu"><a
        href="widgets/fixed-toolbars/footer-persist-a.html">Navbar, persistent</a></li>

<li data-section="Widgets" data-filtertext="pages single multipage templates ajax nav"><a
        href="widgets/pages/">Pages</a></li>

<li data-section="Widgets"
    data-filtertext="panels sliding nav modal transition display reveal overlay push rwd responsive"><a
        href="widgets/panels/">Panels <span class="ui-li-count">New</span></a></li>

<li data-section="Widgets"
    data-filtertext="popup dialog modal transition tooltip lightbox form overlay screen flip pop fade transition"><a
        href="widgets/popup/">Popup</a></li>

<li data-section="Widgets" data-filtertext="radiobuttons checkboxradio inputs forms disabled grouped"><a
        href="widgets/radiobuttons/">Radio buttons</a></li>

<li data-section="Widgets" data-filtertext="selectmenus custom native multiple optgroup disabled forms"><a
        href="widgets/selects/">Select</a></li>

<li data-section="Widgets" data-filtertext="slider, single sliders range inputs forms disabled"><a
        href="widgets/sliders/" data-ajax="false">Slider, single</a></li>

<li data-section="Widgets" data-filtertext="slider, dual range sliders rangesliders inputs forms disabled"><a
        href="widgets/sliders/rangeslider.html" data-ajax="false">Slider, dual range <span
        class="ui-li-count">New</span></a></li>

<li data-section="Widgets" data-filtertext="tables column th td toggle responsive tables rwd hide show tabular"><a
        href="widgets/table-column-toggle/">Table, column toggle <span class="ui-li-count">New</span></a></li>

<li data-section="Widgets" data-filtertext="tables reflow th td responsive rwd columns tabular"><a
        href="widgets/table-reflow/">Table, reflow <span class="ui-li-count">New</span></a></li>

<li data-section="Widgets"
    data-filtertext="text inputs textarea numeric email tel file date time month clear pattern placeholder forms"><a
        href="widgets/textinputs/">Text inputs & textarea</a></li>

<li data-section="Widgets" data-filtertext="page transitions animated pages ajax navigation flip slide fade pop"
    data-ajax="false"><a href="widgets/transitions/" data-ajax="false">Transitions</a></li>

<li data-role="list-divider">Collapsibles</li>

<li data-section="Demo Showcase" data-filtertext="dynamic collapsible set accordion append expand"><a
        href="examples/collapsibles/dynamic-collapsible.html" data-ajax="false">Dynamic collapsible</a></li>

<li data-role="list-divider">Controlgroups</li>

<li data-section="Demo Showcase" data-filtertext="dynamic controlgroup buttons selects checkboxes forms"><a
        href="examples/controlgroups/dynamic-controlgroup.html" data-ajax="false">Dynamic controlgroup</a></li>

<li data-role="list-divider">Listviews</li>

<li data-section="Demo Showcase" data-filtertext="grid listview responsive grids responsive listviews lists ul"><a
        href="examples/listviews/grid-listview.html" data-ajax="false">Grid Listview</a></li>

<li data-section="Demo Showcase" data-filtertext="autodividers anchor jump scroll linkbars listviews lists ul"><a
        href="examples/listviews/autodividers-linkbar.html" data-ajax="false">Autodividers Linkbar</a></li>

<li data-section="Demo Showcase" data-filtertext="listviews autodividers selector autodividersselector lists ul ol"><a
        href="examples/listviews/autodividers-selector.html" data-ajax="false">Autodividers Selector</a></li>

<li data-role="list-divider">Navigation</li>

<li data-section="Demo Showcase" data-filtertext="backbone and require.js example navigation router"><a
        href="examples/backbone-require/index.html" data-ajax="false">Backbone and Require.js example</a></li>

<li data-section="Demo Showcase" data-filtertext="server redirection with server-side support php"><a
        href="examples/redirect/" data-ajax="false">Redirection with server-side support</a></li>

<li data-role="list-divider">Panels</li>

<li data-section="Demo Showcase"
    data-filtertext="panel styling slide panels sliding panels shadow rwd responsive breakpoint"><a
        href="examples/panels/panel-styling.html" data-ajax="false">Panel styling</a></li>

<li data-section="Demo Showcase" data-filtertext="open panel on swipe panels left right"><a
        href="examples/panels/panel-swipe-open.html" data-ajax="false">Open panel on swipe</a></li>

<li data-role="list-divider">Popups</li>

<li data-section="Demo Showcase" data-filtertext="dynamic popups popup images lightbox"><a
        href="examples/popups/dynamic-popup.html" data-ajax="false">Dynamic popup</a></li>

<li data-section="Demo Showcase" data-filtertext="arrow popups popover"><a href="examples/popups/arrow.html"
                                                                           data-ajax="false">Popup with arrow</a></li>

<li data-role="list-divider">Responsive Tables</li>

<li data-section="Demo Showcase" data-filtertext="responsive tables reflow stack custom styles"><a
        href="examples/tables/movie-list.html" data-ajax="false">Reflow: Custom styles</a></li>

<li data-section="Demo Showcase" data-filtertext="responsive tables reflow heading groups rwd breakpoint"><a
        href="examples/tables/financial-grouped-reflow.html" data-ajax="false">Reflow: Heading groups</a></li>

<li data-section="Demo Showcase" data-filtertext="responsive tables reflow refresh method dynamically inject data"><a
        href="examples/tables/reflow-refresh.html" data-ajax="false">Reflow: Refresh method</a></li>

<li data-section="Demo Showcase"
    data-filtertext="responsive tables column toggle hide rwd breakpoint customization options"><a
        href="examples/tables/movie-list-toggle-options.html" data-ajax="false">Column toggle: Customization options</a>
</li>

<li data-section="Demo Showcase" data-filtertext="responsive tables column toggle heading groups rwd breakpoint"><a
        href="examples/tables/financial-grouped-columns.html" data-ajax="false">Column toggle: Heading groups</a></li>

<li data-section="Demo Showcase"
    data-filtertext="responsive tables column toggle refresh method dynamically inject data"><a
        href="examples/tables/columntoggle-refresh.html" data-ajax="false">Column toggle: Refresh method</a></li>

<li data-section="Demo Showcase"
    data-filtertext="responsive tables table column toggle phone comparison rwd breakpoint"><a
        href="examples/tables/phone-compare.html" data-ajax="false">Column toggle demo: Phone comparison</a></li>

<li data-role="list-divider">Sliders</li>

<li data-section="Demo Showcase" data-filtertext="slider tooltip handle value extension input range sliders forms"><a
        href="examples/slider/tooltip.html" data-ajax="false">Tooltip extension</a></li>

<li data-role="list-divider">Swipe</li>

<li data-section="Demo Showcase" data-filtertext="swipe to navigate page transitions navigation"><a
        href="examples/swipe/swipe-page.html" data-ajax="false">Swipe to navigate</a></li>

<li data-section="Demo Showcase" data-filtertext="swipe to delete list item listviews lists ul ol"><a
        href="examples/swipe/swipe-list.html" data-ajax="false">Swipe to delete list item</a></li>

<li data-role="list-divider">Forms</li>

<li data-section="Questions & Answers" data-filtertext="CSS styles apply widget scope wrap selector customize"><a
        href="faq/question-template.html">Why won't my CSS styles apply correctly to a widget?</a></li>

<li data-section="Questions & Answers" data-filtertext="form update value enhance pageinit refresh"><a
        href="faq/updating-the-value-of-enhanced-form-elements-does-not-work.html">Updating the value of enhanced form
    elements does not work.</a></li>

<li data-section="Questions & Answers"
    data-filtertext="HTML 5 inputs appearance keyboard picker calendar date time slider file color"><a
        href="faq/my-html-5-inputs-look-different-in-browsers.html">My HTML 5 inputs look different across devices and
    browsers.</a></li>

<li data-section="Questions & Answers" data-filtertext="range search inputs slider number text degrade"><a
        href="faq/my-range-search-input-type-is-being-changed.html">My range or search inputs are being change to
    number/text.</a></li>

<li data-section="Questions & Answers" data-filtertext="custom select popup dialog logic"><a
        href="faq/sometimes-custom-select-shows-as-dialog-popup.html">Sometimes my custom select shows as a popup other
    times its a dialog.</a></li>

<li data-section="Questions & Answers" data-filtertext="disable button issue class method"><a
        href="faq/disabling-a-button-does-not-work.html">Disabling a button does not work.</a></li>

<li data-section="Questions & Answers" data-filtertext="fixed toolbar header footer fullscreen select input bug issue">
    <a href="faq/controls-in-header-footer.html">Controls in my fixed header or footer are not responding or behave
        erratically.</a></li>

<li data-role="list-divider">Pages</li>

<li data-section="Questions & Answers"
    data-filtertext="head load scripts styles pageinit onload pagebeforecreate ajax nav pages"><a
        href="faq/scripts-and-styles-not-loading.html">Why aren't my scripts and styles loading?</a></li>

<li data-section="Questions & Answers" data-filtertext="document.ready onload paginit DOM ready on ready scripts "><a
        href="faq/dom-ready-not-working.html">Why isn't DOM ready working for my scripts?</a></li>

<li data-section="Questions & Answers" data-filtertext="ajax nav load page mobile.loadpage"><a
        href="faq/how-do-i-load-a-page.html">How do I load a page?</a></li>

<li data-section="Questions & Answers" data-filtertext="ajax nav multi page document load"><a
        href="faq/why-is-only-the-first-page-loaded.html">Why is only the first page of my multi page document
    loaded?</a></li>

<li data-section="Questions & Answers" data-filtertext="pass url query params ajax nav"><a
        href="faq/pass-query-params-to-page.html">I'm trying to pass query params to a page but it's not working?</a>
</li>

<li data-section="Questions & Answers" data-filtertext="hash pass parameters information ajax nav"><a
        href="faq/pass-via-the-hash-to-page.html">I'm trying to pass information via the hash but it's not working?</a>
</li>

<li data-section="Questions & Answers" data-filtertext="application cache status error isLocal ajax nav"><a
        href="faq/the-application-cache-is-not-working.html">I'm trying to use the application cache but it's not
    working.</a></li>

<li data-section="Questions & Answers"
    data-filtertext=">create refresh event trigger pageInit refresh method content injected page not enhanced."><a
        href="faq/injected-content-is-not-enhanced.html">Content injected into a page is not enhanced.</a></li>

<li data-section="Questions & Answers" data-filtertext=">create trigger event pageInit injected HTML"><a
        href="faq/triggering-create-on-injected-content-does-not-work.html">Triggering create on injected HTML does not
    work.</a></li>

<li data-section="Questions & Answers" data-filtertext="auto-enhance element stop preventnative role none"><a
        href="faq/how-can-i-stop-auto-enhancement-of-elements.html">How can I stop JQM from auto-enhancing an
    element?</a></li>

<li data-section="Questions & Answers"
    data-filtertext="auto-enhance block container parent stop preventnative role none"><a
        href="faq/how-can-i-stop-auto-enhancement-of-a-block-of-elements.html">How can I stop JQM from enhancing a block
    of elements?</a></li>

<li data-section="Questions & Answers" data-filtertext="page title ajax nav head"><a
        href="faq/how-do-i-control-page-titles.html">How do I control page titles?</a></li>

<li data-section="Questions & Answers" data-filtertext="ajax nav load page loadPage"><a
        href="faq/how-do-i-load-a-page.html">How do I load a page?</a></li>

<li data-role="list-divider">Events</li>

<li data-section="Questions & Answers"
    data-filtertext="touch mouse events vmouseover, vmousedown, vmousemove, vmouseup, vclick, vmousecancel"><a
        href="faq/how-do-i-use-touch-mouse-events.html">How do I use touch and mouse events?</a></li>

<li data-role="list-divider">Theme and styling</li>

<li data-section="Questions & Answers"
    data-filtertext="theme swatch css themeroller customize icons colors fonts style"><a
        href="faq/how-does-theming-work.html">How does theming work?</a></li>

<li data-role="list-divider">Apps</li>

<li data-section="Questions & Answers" data-filtertext="How do I need to configure PhoneGap Cordova?"><a
        href="faq/how-configure-phonegap-cordova.html">How do I need to configure PhoneGap/Cordova?</a></li>
<!--
<li data-role="list-divider">Navigation</li>

<li data-section="Questions & Answers" data-filtertext=""><a href="faq/nav-is-acting-erraticly.html">The nav is acting erratically!</a></li>

<li data-section="Questions & Answers" data-filtertext=""><a href="faq/deep-links-dont-work.html">Following a deep link ( a link to scroll to and id ) does not work.</a></li>

<li data-section="Questions & Answers" data-filtertext=""><a href="faq/scripts-css-only-works-on-first-page-or-refresh.html">My script / css only works on first page or on refresh.</a></li>
<li data-role="list-divider">Widgets</li>

<li data-section="Questions & Answers" data-filtertext=""><a href="faq/cloned-content-double-enhanced.html">Cloning a widget or enhanced for element and enhancing causes "double" enhancement</a></li>

<li data-section="Questions & Answers" data-filtertext=""><a href="faq/cloned-content-does-not-update.html">Cloned widget or enhanced element does not update</a></li>

<li data-section="Questions & Answers" data-filtertext=""><a href="faq/data-enhance-false-does-not-work.html">Setting data-enhance="false" does not work.</a></li>

<li data-role="list-divider">General</li>

<li data-section="Questions & Answers" data-filtertext=""><a href="faq/selecting-element-by-id-not-working.html">Selecting elements by id only works sometimes or on first page!</a></li>

<li data-section="Questions & Answers" data-filtertext=""><a href="faq/global-config-settings-ignored.html">The global configuration settings i set are being ignored.</a></li>

<li data-section="Questions & Answers" data-filtertext=""><a href="faq/custom-css-is-ignored.html">My custom css is ignored.</a></li>

<li data-role="list-divider">Events</li>

<li data-section="Questions & Answers" data-filtertext=""><a href="faq/swipe-triggered-when-scrolling.html">Swipe triggered when scrolling.</a></li>

<li data-section="Questions & Answers" data-filtertext=""><a href="faq/document-ready-not-working.html">Document ready ignored after first page.</a></li>

<li data-role="list-divider">Theming &amp; custom styles</li>

<li data-section="Questions & Answers" data-filtertext=""><a href="faq/#">How do I add custom icons?</a></li>

<li data-section="Questions & Answers" data-filtertext=""><a href="faq/#">How do I add remove the circle behind the icons?</a></li>
-->

</ul>
</div>

</div>
<!-- /header -->

<div data-role="content" class="jqm-content">

<h1>Form elements</h1>

<p class="jqm-intro">All form widgets begin with native form elements with rich HTML semantics that are enhanced to make
    them more attractive and finger-friendly.
</p>

<h2>Markup conventions</h2>

<p>When constructing forms to be used in jQuery Mobile, most of the standard guidelines used to create forms that submit
    via ordinary HTTP POST or GET still apply. Additionally, the <code>id</code> attributes of form controls need to be
    not only unique on a given page, but also unique across the pages in a site. This is because jQuery Mobile's
    single-page navigation model allows many different "pages" to be present in the DOM at the same time. You must be
    careful to use unique <code>id</code> attributes so there will be only one of each in the DOM. Be sure to pair them
    properly with <code>label</code> elements via the <code>for</code> attribute.</p>

<h2>Buttons</h2>

<p>Buttons are core widgets in jQuery Mobile and are used within a wide range of other plugins. The button markup is
    flexible and can be created from links or form buttons. Learn more about <a href="../buttons/">buttons</a>.</p>

<div data-demo-html="true">
    <a href="#" data-role="button">Link button</a>
    <input type="button" value="Button element" data-icon="delete" data-theme="b"/>
    <input type="submit" value="Submit button, mini" data-icon="grid" data-iconpos="right" data-mini="true"
           data-theme="e"/>
</div>
<!-- /demo-html -->

<p>Inline buttons</p>

<div data-demo-html="true">
    <a href="#" data-role="button" data-inline="true" data-icon="star">Inline + icon</a>
    <a href="#" data-role="button" data-inline="true" data-theme="b" data-mini="true">Mini + theme</a>
    <a href="#" data-role="button" data-inline="true" data-icon="plus" data-iconpos="notext" data-theme="e"
       data-mini="true">icon only button</a>
</div>
<!-- /demo-html -->

<p>Horizontal grouped buttons</p>

<div data-demo-html="true">
    <div data-role="controlgroup" data-type="horizontal" data-mini="true">
        <a href="#" data-role="button" data-icon="plus" data-theme="b">Add</a>
        <a href="#" data-role="button" data-icon="delete" data-theme="b">Delete</a>
        <a href="#" data-role="button" data-icon="grid" data-theme="b">More</a>
    </div>
</div>
<!-- /demo-html -->

<h2>Sliders</h2>

<p>Sliders are used to enter numeric values along a numeric continuum by dragging a handle or entering in a value. Learn
    more about <a href="../sliders/" data-ajax="false">sliders</a>.</p>

<div data-demo-html="true">
    <label for="slider">Slider:</label>
    <input type="range" name="slider" id="slider" value="50" min="0" max="100"/>
</div>
<!-- /demo-html -->

<div data-demo-html="true">
    <label for="slider-fill">Slider with fill and step of 50:</label>
    <input type="range" name="slider-fill" id="slider-fill" value="60" min="0" max="1000" step="50"
           data-highlight="true"/>
</div>
<!-- /demo-html -->

<div data-demo-html="true">
    <label for="slider-fill-mini">Slider with fill, mini, track theme:</label>
    <input type="range" name="slider-fill-mini" id="slider-fill-mini" value="40" min="0" max="100" data-mini="true"
           data-highlight="true" data-theme="b" data-track-theme="d"/>
</div>
<!-- /demo-html -->

<h2>Range slider</h2>

<p>Range sliders offer two handles to set a min and max value along a numeric continuum. Learn more about <a
        href="../sliders/rangeslider.html" data-ajax="false">range sliders</a>.</p>

<div data-demo-html="true">
    <form>
        <div data-role="rangeslider">
            <label for="range-1a">Rangeslider:</label>
            <input type="range" name="range-1a" id="range-1a" min="0" max="100" value="40">
            <label for="range-1b">Rangeslider:</label>
            <input type="range" name="range-1b" id="range-1b" min="0" max="100" value="80">
        </div>
    </form>
    </form>
</div>
<!-- /demo-html -->

<div data-demo-html="true">
    <form>
        <div data-role="rangeslider" data-mini="true">
            <label for="range-2a">Mini rangeslider:</label>
            <input type="range" name="range-2a" id="range-2a" min="0" max="100" value="40">
            <label for="range-2b">Mini rangeslider:</label>
            <input type="range" name="range-2b" id="range-2b" min="0" max="100" value="80">
        </div>
    </form>
    </form>
</div>
<!-- /demo-html -->

<h2>Flip switch</h2>

<p>Flip switches are used for boolean style inputs like true/false or on/off in a compact UI element. Learn more about
    <a href="../sliders/switch.html" data-ajax="false">flip switches</a>.</p>

<div data-demo-html="true">
    <label for="slider2">Flip switch:</label>
    <select name="slider2" id="slider2" data-role="slider">
        <option value="off">Off</option>
        <option value="on">On</option>
    </select>
</div>
<!-- /demo-html -->

<div data-demo-html="true">
    <label for="slider-flip-m">Mini flip switch:</label>
    <select name="slider-flip-m" id="slider-flip-m" data-role="slider" data-mini="true">
        <option value="off">No</option>
        <option value="on" selected>Yes</option>
    </select>
</div>
<!-- /demo-html -->

<h2>Checkboxes</h2>

<p>Checkboxes are used to provide a list of options where more than one can be selected. Learn more about <a
        href="../checkbox/">checkboxes</a>.</p>

<div data-demo-html="true">
    <fieldset data-role="controlgroup">
        <legend>Checkboxes, vertical controlgroup:</legend>
        <input type="checkbox" name="checkbox-1a" id="checkbox-1a" checked/>
        <label for="checkbox-1a">Cheetos</label>

        <input type="checkbox" name="checkbox-2a" id="checkbox-2a"/>
        <label for="checkbox-2a">Doritos</label>

        <input type="checkbox" name="checkbox-3a" id="checkbox-3a"/>
        <label for="checkbox-3a">Fritos</label>

        <input type="checkbox" name="checkbox-4a" id="checkbox-4a"/>
        <label for="checkbox-4a">Sun Chips</label>
    </fieldset>
</div>
<!-- /demo-html -->

<div data-demo-html="true">
    <fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
        <legend>Checkboxes, mini, horizontal controlgroup:</legend>
        <input type="checkbox" name="checkbox-6" id="checkbox-6"/>
        <label for="checkbox-6">b</label>

        <input type="checkbox" name="checkbox-7" id="checkbox-7" checked/>
        <label for="checkbox-7"><em>i</em></label>

        <input type="checkbox" name="checkbox-8" id="checkbox-8"/>
        <label for="checkbox-8">u</label>
    </fieldset>
</div>
<!-- /demo-html -->

<h2>Radio buttons</h2>

<p>Radio buttons are used to provide a list of options where only a single option can be selected. Learn more about <a
        href="../radiobuttons/">radiobuttons</a>.</p>

<div data-demo-html="true">
    <fieldset data-role="controlgroup">
        <legend>Radio buttons, vertical controlgroup:</legend>
        <input type="radio" name="radio-choice-1" id="radio-choice-1" value="choice-1" checked="checked"/>
        <label for="radio-choice-1">Cat</label>

        <input type="radio" name="radio-choice-1" id="radio-choice-2" value="choice-2"/>
        <label for="radio-choice-2">Dog</label>

        <input type="radio" name="radio-choice-1" id="radio-choice-3" value="choice-3"/>
        <label for="radio-choice-3">Hamster</label>

        <input type="radio" name="radio-choice-1" id="radio-choice-4" value="choice-4"/>
        <label for="radio-choice-4">Lizard</label>
    </fieldset>
</div>
<!-- /demo-html -->

<div data-demo-html="true">
    <fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
        <legend>Radio buttons, mini, horizontal controlgroup:</legend>
        <input type="radio" name="radio-choice-b" id="radio-choice-c" value="list" checked="checked"/>
        <label for="radio-choice-c">List</label>
        <input type="radio" name="radio-choice-b" id="radio-choice-d" value="grid"/>
        <label for="radio-choice-d">Grid</label>
        <input type="radio" name="radio-choice-b" id="radio-choice-e" value="gallery"/>
        <label for="radio-choice-e">Gallery</label>
    </fieldset>
</div>
<!-- /demo-html -->

<h2>Selects</h2>

<p>The select menu is used to offer a list of options in a compact picker. Ours is based on a native select element,
    which is hidden from view and replaced with a custom-styled select button. Tapping it opens the native menu or a
    custom styled version. Learn more about <a href="../selects/">selects</a>.</p>

<div data-demo-html="true">
    <label for="select-choice-1" class="select">Select, native menu</label>
    <select name="select-choice-1" id="select-choice-1">
        <option value="standard">Standard: 7 day</option>
        <option value="rush">Rush: 3 days</option>
        <option value="express">Express: next day</option>
        <option value="overnight">Overnight</option>
    </select>
</div>
<!-- /demo-html -->

<div data-demo-html="true">
    <label for="select-choice-mini" class="select">Mini select, inline</label>
    <select name="select-choice-mini" id="select-choice-mini" data-mini="true" data-inline="true">
        <option value="standard">Standard: 7 day</option>
        <option value="rush">Rush: 3 days</option>
        <option value="express">Express: next day</option>
        <option value="overnight">Overnight</option>
    </select>
</div>
<!-- /demo-html -->

<div data-demo-html="true">
    <label for="select-choice-a" class="select">Custom select menu:</label>
    <select name="select-choice-a" id="select-choice-a" data-native-menu="false">
        <option>Custom menu example</option>
        <option value="standard">Standard: 7 day</option>
        <option value="rush">Rush: 3 days</option>
        <option value="express">Express: next day</option>
        <option value="overnight">Overnight</option>
    </select>
</div>
<!-- /demo-html -->

<div data-demo-html="true">
    <label for="select-choice-8" class="select">Multi-select with optgroups, custom icon and position:</label>
    <select name="select-choice-8" id="select-choice-8" multiple="multiple" data-native-menu="false" data-icon="grid"
            data-iconpos="left">

        <option>Choose a few options:</option>
        <optgroup label="USPS">
            <option value="standard" selected>Standard: 7 day</option>
            <option value="rush">Rush: 3 days</option>
            <option value="express">Express: next day</option>
            <option value="overnight">Overnight</option>
        </optgroup>
        <optgroup label="FedEx">
            <option value="firstOvernight">First Overnight</option>
            <option value="expressSaver">Express Saver</option>
            <option value="ground">Ground</option>
        </optgroup>
    </select>
</div>
<!-- /demo-html -->

<h2>Text inputs & Textareas</h2>

<p>Text inputs and textareas are coded with standard HTML elements, then enhanced by jQuery Mobile to make them more
    attractive and useable on a mobile device. Learn more about <a href="../textinputs/">text inputs and textareas</a>.
</p>

<div data-demo-html="true">
    <label for="text-basic">Text input:</label>
    <input type="text" name="text-basic" id="text-basic" value=""/>
</div>
<!-- /demo-html -->

<div data-demo-html="true">
    <label for="textarea">Textarea:</label>
    <textarea cols="40" rows="8" name="textarea" id="textarea"></textarea>
</div>
<!-- /demo-html -->

<div data-demo-html="true">
    <label for="number-pattern">Number + [0-9]* pattern:</label>
    <input type="number" name="number" pattern="[0-9]*" id="number-pattern" value=""/>
</div>
<!-- /demo-html -->

<div data-demo-html="true">
    <label for="date">Date:</label>
    <input type="date" name="date" id="date" value=""/>
</div>
<!-- /demo-html -->

<div data-demo-html="true">
    <label for="tel">Tel:</label>
    <input type="tel" name="tel" id="tel" value=""/>
</div>
<!-- /demo-html -->

<div data-demo-html="true">
    <label for="search">Search Input:</label>
    <input type="search" name="password" id="search" value="" placeholder="Placeholder text..."/>
</div>
<!-- /demo-html -->

<div data-demo-html="true">
    <label for="file">File:</label>
    <input type="file" name="file" id="file" value=""/>
</div>
<!-- /demo-html -->

<div data-demo-html="true">
    <label for="password">Password:</label>
    <input type="password" name="password" id="password" value="" autocomplete="off"/>
</div>
<!-- /demo-html -->

<p>See the <a href="form-gallery.html">form gallery</a> for more form element examples.</p>

<h2>Accessibly hidden labels</h2>

<p>For the sake of accessibility, jQuery Mobile requires that all form elements be paired with a meaningful
    <code>label</code>. To hide labels in a way that leaves them visible to assistive technologies &mdash; for example,
    when letting an element's <code>placeholder</code> attribute serve as a label &mdash; apply the helper class <code>ui-hidden-accessible</code>
    to the label. View more examples of <a href="form-label-hidden.html">accessibly hidden labels</a>. In case you use a
    field container you can use class <code>ui-hide-label</code> on the element with
    <code>data-role="fieldcontain"</code> to <a href="form-hide-label.html">hide the label or legend</a>.</p>

<div data-demo-html="true">
    <label for="textinput-hide" class="ui-hidden-accessible">Text Input:</label>
    <input type="text" name="textinput-hide" id="textinput-hide" placeholder="Text input" value="">
</div>
<!--/demo-html -->

<h2>Disabling form elements</h2>

<p>All jQuery Mobile widgets can be disabled in the markup by adding the standard <code>disabled</code> attribute to the
    element, just like you would with native controls. Each form widget also has standard <code>disable</code> and
    <code>enable</code> methods that are documented with each form widget. View more examples of <a
            href="form-disabled.html">disabled form elements</a>.</p>

<div data-demo-html="true">
    <div data-role="fieldcontain">
        <label for="textinput-disabled">Text Input:</label>
        <input disabled="disabled" type="text" name="textinput-disabled" id="textinput-disabled"
               placeholder="Text input" value="">
    </div>
</div>
<!--/demo-html -->

<p>Note that you can disable buttons created from <code>button</code> or <code>input</code>-based markup, but not links
    with a role of button. Links don't have a parallel disabled feature in HTML, but if you need to disable a link-based
    button (or any element), it's possible to apply the disabled class <code>ui-disabled</code> yourself with JavaScript
    to achieve the same effect. </p>

<h2>Fieldcontainer groupings</h2>

<p>To improve the styling of labels and form elements on wider screens, wrap a <code>div</code> or
    <code>fieldset </code>with the <code> data-role="fieldcontain"</code> attribute around each label/form element. This
    framework aligns the input and associated label side-by-side, and breaks to stacked block-level elements below
    ~448px. The framework will also add a thin bottom border to act as a field separator. See more examples of <a
            href="form-fieldcontain.html">fieldcontainer groupings</a>.</p>

<div data-demo-html="true">
    <div data-role="fieldcontain">
        <label for="textinput-fc">Text Input:</label>
        <input type="text" name="textinput-fc" id="textinput-fc" placeholder="Text input" value="">
    </div>
</div>
<!--/demo-html -->

<div data-demo-html="true">
    <div data-role="fieldcontain">
        <label for="select-native-fc">Native select:</label>
        <select name="select-native-fc" id="select-native-fc">
            <option value="small">One</option>
            <option value="medium">Two</option>
            <option value="large">Three</option>
        </select>
    </div>
</div>
<!--/demo-html -->

<h2>Auto-initialization of form elements</h2>

<p>By default, jQuery Mobile will automatically enhance certain native form controls into rich touch-friendly
    components. This is handled internally by finding form elements by tag name and running a plugin method on them. For
    instance, a <code>select</code> element will be found and initialized with the "selectmenu" plugin, while an <code>input</code>
    element with a <code>type="checkbox"</code> will be enhanced with the "checkboxradio" plugin. Once initialized, you
    can address these enhanced components programmatically through their jQuery UI widget API methods. See options,
    methods, and events listed on each form plugin's documentation page for details. </p>

<h2>Initializing groups of dynamically-injected form elements</h2>

<p>If you should generate new markup client-side or load in content via AJAX and inject it into a page, you can trigger
    the <code>create</code> event to handle the auto-initialization for all the plugins contained within the new markup.
    This can be triggered on any element (even the page div itself), saving you the task of manually initializing each
    plugin (see below).</p>

<p>For example, if a block of HTML markup (say a login form) was loaded in through AJAX, trigger the create event to
    automatically transform all the widgets it contains (inputs and buttons in this case) into the enhanced versions.
    The code for this scenario would be:</p>

<pre><code>
    $( ...new markup that contains widgets... ).appendTo( ".ui-page" ).trigger( "create" );
</code></pre>

<h2>Refreshing form elements</h2>

<p>In jQuery Mobile, some enhanced form controls are simply styled (inputs), but others are custom controls (selects,
    sliders) built from, and kept in sync with, the native control. To programmatically update a form control with
    JavaScript, first manipulate the native control, then use the <code>refresh</code> method to tell the enhanced
    control to update itself to match the new state. Here are some examples of how to update common form controls, then
    call the <code>refresh</code> method:</p>

<h4>Checkboxes:</h4>

<pre><code>
    $( "input[type='checkbox']" ).prop( "checked", true ).checkboxradio( "refresh" );
</code></pre>

<h4>Radios:</h4>
        
<pre><code>
    $( "input[type='radio']" ).prop( "checked", true ).checkboxradio( "refresh" );
</code></pre>

<h4>Selects:</h4>
        
<pre><code>
    var myselect = $( "#selectfoo" );
    myselect[0].selectedIndex = 3;
    myselect.selectmenu( "refresh" );
</code></pre>

<h4>Sliders:</h4>
        
<pre><code>
    $( "input[type='range']" ).val( 60 ).slider( "refresh" );
</code></pre>

<h4>Flip switches:</h4>

<p>They use the slider widget.</p>

<pre><code>
    var myswitch = $( "#selectbar" );
    myswitch[ 0 ].selectedIndex = 1;
    myswitch.slider( "refresh" );
</pre>
</code>

<h2>Preventing auto-initialization of form elements</h2>

<p>If you'd prefer that a particular form control be left untouched by jQuery Mobile, simply give that element the
    attribute <code> data-role="none"</code>. For example:</p>
            
<pre><code>
    &lt;label for=&quot;foo&quot;&gt;
    &lt;select name=&quot;foo&quot; id=&quot;foo&quot; <strong>data-role=&quot;none&quot;</strong>&gt;
    &lt;option value="a"&gt;A&lt;/option&gt;
    &lt;option value="b"&gt;B&lt;/option&gt;
    &lt;option value="c"&gt;C&lt;/option&gt;
    &lt;/select&gt;
</code></pre>

<p>If you'd like to prevent auto-initialization without adding attributes to your markup, you can customize the selector
    that is used for preventing auto-initialization by setting the page plugin's <code>keepNative</code> option (which
    defaults to <code>[data-role="none"]</code>). Be sure to configure this option inside an event handler bound to the
    <code>mobileinit</code> event, so that it applies to the first page as well as subsequent pages that are loaded.</p>
            
<pre><code>
    $( document ).bind( "mobileinit", function() {
    <strong>$.mobile.page.prototype.options.keepNative = "select, input.foo, textarea.bar";</strong>
    });
</code></pre>

<p>Alternately you can use the <code>data-enhance="false"</code> data attribute on a parent element with <code>$.mobile.ignoreContentEnabled</code>
    set to true. Beware though, this will incur a performance penalty for each and every element in the page that would
    otherwise be enhanced as jQuery Mobile must traverse the set of parents to look for those elements.</p>

<p>One special case is that of selects. The above sample will prevent any and all augmentation from taking place on
    select elements in the page if <code>select</code> is included. If you wish to retain the native performance and
    appearance of the menu itself and benefit from the visual augmentation of the select button by jQuery Mobile, you
    can set <code>$.mobile.selectmenu.prototype.options.nativeMenu</code> to true in a <code>mobileinit</code> callback
    as a global setting or use <code>data-native-menu="true"</code> on a case by case basis.</p>

<h2>File Inputs + AJAX</h2>

<p>Using a multipart form with a file input is not supported by AJAX. In this case you should decorate the parent form
    with <code>data-ajax="false"</code> to ensure the form is submitted properly to the server.</p>

</div>
<!-- /content -->

<div data-role="footer" class="jqm-footer">
    <p class="jqm-version"></p>

    <p>Copyright 2013 The jQuery Foundation</p>
</div>
<!-- /footer -->
<div data-role="panel" class="jqm-nav-panel jqm-navmenu-panel" data-position="left" data-display="reveal"
     data-theme="c">
    <ul data-role="listview" data-theme="d" data-divider-theme="d" data-icon="false" data-global-nav="demos"
        class="jqm-list">
        <li data-role="list-divider">jQuery Mobile Demos</li>
        <li><a href="./">Home</a></li>
        <li><a href="intro/">Introduction</a></li>
        <li><a href="examples/">Demo Showcase</a></li>
        <li><a href="faq/">Questions & Answers</a></li>
        <li><a href="intro/rwd.html">Going Responsive</a></li>
        <li data-role="list-divider">Widget reference</li>
        <li data-section="Widgets" data-filtertext="accordions collapsible sets content formatting grouped inset mini">
            <a href="widgets/accordions/">Accordion</a></li>

        <li data-section="Widgets" data-filtertext="ajax navigation navigate event method"><a href="widgets/navigation/"
                                                                                              data-ajax="false">AJAX
            Navigation</a></li>

        <li data-section="Widgets"
            data-filtertext="autocomplete filter reveal listviews remote listviewbeforefilter placeholder"><a
                href="widgets/autocomplete/" data-ajax="false">Autocomplete</a></li>

        <li data-section="Widgets" data-filtertext="buttons inputs forms inline theme grouped icons mini disabled"><a
                href="widgets/buttons/" data-ajax="false">Buttons</a></li>

        <li data-section="Widgets" data-filtertext="checkboxes checkboxradio inputs forms mini disabled"><a
                href="widgets/checkbox/">Checkboxes</a></li>

        <li data-section="Widgets" data-filtertext="collapsibles content formatting"><a href="widgets/collapsibles/"
                                                                                        data-ajax="false">Collapsibles</a>
        </li>

        <li data-section="Widgets" data-filtertext="controlgroups selects checkboxradio buttons horizontal vertical"><a
                href="widgets/controlgroups/">Controlgroup</a></li>

        <li data-section="Widgets" data-filtertext="dialogs modal popups"><a href="widgets/dialog/">Dialogs</a></li>

        <li data-section="Widgets" data-filtertext="fixed toolbars headers footers sections fullscreen"><a
                href="widgets/fixed-toolbars/">Fixed toolbars</a></li>

        <li data-section="Widgets" data-filtertext="flip toggle switch binary slider selects forms disabled"><a
                href="widgets/sliders/switch.html" data-ajax="false">Flip switch toggle</a></li>

        <li data-section="Widgets" data-filtertext="footer toolbars footers sections"><a href="widgets/footers/">Footer
            toolbar</a></li>

        <li data-section="Widgets"
            data-filtertext="forms inputs slider button range toggle switch label disabled accessible fieldcontains elements">
            <a href="widgets/forms/">Form elements</a></li>

        <li data-section="Widgets" data-filtertext="grids columns blocks content formatting rwd responsive"><a
                href="widgets/grids/">Grids</a></li>

        <li data-section="Widgets" data-filtertext="header toolbars fixed fullscreen sections"><a
                href="widgets/headers/">Header toolbar</a></li>

        <li data-section="Widgets" data-filtertext="icons buttons disc position"><a href="widgets/icons/">Icons</a></li>

        <li data-section="Widgets" data-filtertext="links navigation ajax prefetch cache"><a
                href="widgets/links/">Links</a></li>

        <li data-section="Widgets" data-filtertext="listviews thumbnails icons nested split button collapsible ul ol"><a
                href="widgets/listviews/" data-ajax="false">Listviews</a></li>

        <li data-section="Widgets" data-filtertext="ajax loader overlay spinner pages"><a href="widgets/loader/"
                                                                                          data-ajax="false">Loader
            overlay</a></li>

        <li data-section="Widgets" data-filtertext="navbars navmenu toolbars links icons footer header"><a
                href="widgets/navbar/" data-ajax="false">Navbar</a></li>

        <li data-section="Widgets" data-filtertext="navbars persistent header footer links navmenu"><a
                href="widgets/fixed-toolbars/footer-persist-a.html">Navbar, persistent</a></li>

        <li data-section="Widgets" data-filtertext="pages single multipage templates ajax nav"><a href="widgets/pages/">Pages</a>
        </li>

        <li data-section="Widgets"
            data-filtertext="panels sliding nav modal transition display reveal overlay push rwd responsive"><a
                href="widgets/panels/">Panels <span class="ui-li-count">New</span></a></li>

        <li data-section="Widgets"
            data-filtertext="popup dialog modal transition tooltip lightbox form overlay screen flip pop fade transition">
            <a href="widgets/popup/">Popup</a></li>

        <li data-section="Widgets" data-filtertext="radiobuttons checkboxradio inputs forms disabled grouped"><a
                href="widgets/radiobuttons/">Radio buttons</a></li>

        <li data-section="Widgets" data-filtertext="selectmenus custom native multiple optgroup disabled forms"><a
                href="widgets/selects/">Select</a></li>

        <li data-section="Widgets" data-filtertext="slider, single sliders range inputs forms disabled"><a
                href="widgets/sliders/" data-ajax="false">Slider, single</a></li>

        <li data-section="Widgets" data-filtertext="slider, dual range sliders rangesliders inputs forms disabled"><a
                href="widgets/sliders/rangeslider.html" data-ajax="false">Slider, dual range <span class="ui-li-count">New</span></a>
        </li>

        <li data-section="Widgets" data-filtertext="tables column th td toggle responsive tables rwd hide show tabular">
            <a href="widgets/table-column-toggle/">Table, column toggle <span class="ui-li-count">New</span></a></li>

        <li data-section="Widgets" data-filtertext="tables reflow th td responsive rwd columns tabular"><a
                href="widgets/table-reflow/">Table, reflow <span class="ui-li-count">New</span></a></li>

        <li data-section="Widgets"
            data-filtertext="text inputs textarea numeric email tel file date time month clear pattern placeholder forms">
            <a href="widgets/textinputs/">Text inputs & textarea</a></li>

        <li data-section="Widgets" data-filtertext="page transitions animated pages ajax navigation flip slide fade pop"
            data-ajax="false"><a href="widgets/transitions/" data-ajax="false">Transitions</a></li>

    </ul>
</div>
<!-- /panel -->


</div>
<!-- /page -->
</body>
</html>
